Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cspell

Package Overview
Dependencies
Maintainers
1
Versions
432
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cspell

A Spelling Checker for Code!

  • 8.16.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
536K
decreased by-24.81%
Maintainers
1
Weekly downloads
 
Created

What is cspell?

cspell is a spell checker for code that helps developers identify and correct spelling errors in their codebase, comments, strings, and documentation. It is highly configurable and can be integrated into various development workflows.

What are cspell's main functionalities?

Basic Spell Checking

This command runs cspell to check for spelling errors in all TypeScript files within the 'src' directory and its subdirectories.

npx cspell 'src/**/*.ts'

Custom Dictionaries

You can add custom dictionaries to cspell by specifying them in the configuration file. This allows you to include domain-specific terms that are not in the default dictionary.

{
  "dictionaries": ["custom-words"]
}

Ignoring Files and Patterns

cspell allows you to ignore specific files or patterns by adding them to the 'ignorePaths' array in the configuration file. This is useful for excluding generated files or dependencies.

{
  "ignorePaths": ["node_modules/**", "dist/**"]
}

Configurable Language Settings

You can configure the language and locale settings in cspell to match the language used in your codebase. This ensures that the spell checker uses the correct dictionary and rules.

{
  "language": "en",
  "local": "en-US"
}

Integration with Code Editors

cspell can be integrated with popular code editors like VSCode. By enabling the cspell extension, you can get real-time spell checking as you write code.

/* Example for VSCode */
{
  "cSpell.enabled": true
}

Other packages similar to cspell

Keywords

FAQs

Package last updated on 27 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc